package com.pojo;

public class PrlDtlId implements java.io.Serializable {
	private long unitId;
	private String prlType;
	private Long prodClsId;
	
	public PrlDtlId() {
		
	}
	public PrlDtlId(long unitId, String prlType, Long prodClsId) {
		super();
		this.unitId = unitId;
		this.prlType = prlType;
		this.prodClsId = prodClsId;
	}
	
	public long getUnitId() {
		return unitId;
	}
	public void setUnitId(long unitId) {
		this.unitId = unitId;
	}
	public String getPrlType() {
		return prlType;
	}
	public void setPrlType(String prlType) {
		this.prlType = prlType;
	}
	public Long getProdClsId() {
		return prodClsId;
	}
	public void setProdClsId(Long prodClsId) {
		this.prodClsId = prodClsId;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((prlType == null) ? 0 : prlType.hashCode());
		result = prime * result
				+ ((prodClsId == null) ? 0 : prodClsId.hashCode());
		result = prime * result + (int) (unitId ^ (unitId >>> 32));
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PrlDtlId other = (PrlDtlId) obj;
		if (prlType == null) {
			if (other.prlType != null)
				return false;
		} else if (!prlType.equals(other.prlType))
			return false;
		if (prodClsId == null) {
			if (other.prodClsId != null)
				return false;
		} else if (!prodClsId.equals(other.prodClsId))
			return false;
		if (unitId != other.unitId)
			return false;
		return true;
	}
	
	
}
